package com.github.ylt.utils;

public class OSUtils {
    private OSUtils() {}
    private static class SingletonHolder{
        private static final OSUtils INSTANCE = new OSUtils();
    }
    public static OSUtils getInstance(){
        return SingletonHolder.INSTANCE;
    }

    public String getOsName(){
        return System.getProperty("os.name");
    }
    public String getOsArch(){
        return System.getProperty("os.arch");
    }
    public String getOsVersion(){
        return System.getProperty("os.version");
    }
}
